package com.liner.person;

/**
 * 派生类/子类
 */
public class Doctor extends Person{
    String title;

    public Doctor(String name, int age,String address, String title) {
        super(name, age,address);
        this.title = title;
    }

    public void cut() {
        System.out.println(name + "正在做手术");
    }


}
